package android.longs.study.mytest.servert;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import android.longs.study.base.HomeServlet;
import android.longs.study.mytest.service.MyTestListService;


@WebServlet("/add/sub")
public class AddSubServert extends HomeServlet{

    private MyTestListService service = new MyTestListService();
    @Override
    public void doRequestFunction(HttpServletRequest request,
	    HttpServletResponse response) {
	try {
	    System.out.println("添加试题 .. .. .. ");
	    String addSubFuntion = service.addSubFuntion(request);
	    response.getWriter().write(addSubFuntion);
	    
	} catch (Exception e) {
	   System.out.println("异常 .. "+e.getMessage());
	}
	
    }

}
